import request from '@/config/axios'


//获取所有栏目
export const columnList = () => {
  return request.get({ url: '/column/list' })
}


//新增栏目
export const columnInsert = (data) => {
  return request.post({ url: '/column/add', data })
}


//修改栏目
export const columnUpdate = (data) => {
  return request.post({ url: '/column/update', data })
}

//删除栏目
export const columnDel = (params) => {
  return request.get({ url: '/column/delete', params })
}
